#!/bin/bash
read -p"请输入一个整数："  a
[ -r 002.sh ] && echo "可读" || echo "不可读"
[ -w 002.sh ] && echo "可写" || echo "不可写"
[ -x 002.sh ] && echo "可执行" || echo "不可执行"
[ -e 004.sh ] && echo "存在" || echo "不存在"
if [ $a -gt 22 ]; then 
	echo "$a>22"
fi
read -p"请输入年龄：" age
if [ $age -ge 18 ];then
	echo "$age已成年"
else
	echo "$age未成年"
fi
if [ $age -ge 18 -a $age -le 36 ];then
	echo "$age为青年"
else
	echo "$age不合格"
fi
